package com.sms.shared;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="parameter")
public class Parameter implements Serializable{
	
	public Parameter(){
		
	}
	
	@Id
	@GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
	@Column(name = "Id")
	private java.lang.Long id;
	
	@Column(name = "minYellowRange")
	private Double minYellowRange;
	@Column(name = "maxYellowRange")
	private Double maxYellowRange;
	@Column(name = "minRedRange")
	private Double minRedRange;
	@Column(name = "maxRedRange")
	private Double maxRedRange;
	@Column(name = "minGreenRange")
	private Double minGreenRange;
	@Column(name = "maxGreenRange")
	private Double maxGreenRange;
	
	@Column(name = "startRange")
	private Double startRange;
	@Column(name = "endRange")
	private Double endRange;
	@Column(name = "type",length=30)
	private String type;
	@Column(name = "createdDate")
	private java.util.Date createdDate;
	
	@Column(name = "updatedDate")
	private java.util.Date updatedDate;
	
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name = "confId", insertable = false, updatable = false)
	private Configuration configuration;
	
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name = "unitId", insertable = false, updatable = false)
	private UnitOfMeasure unitOfMeasure;

	public java.lang.Long getId() {
		return id;
	}

	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public Double getMinYellowRange() {
		return minYellowRange;
	}

	public void setMinYellowRange(Double minYellowRange) {
		this.minYellowRange = minYellowRange;
	}

	public Double getMaxYellowRange() {
		return maxYellowRange;
	}

	public void setMaxYellowRange(Double maxYellowRange) {
		this.maxYellowRange = maxYellowRange;
	}

	public Double getMinRedRange() {
		return minRedRange;
	}

	public void setMinRedRange(Double minRedRange) {
		this.minRedRange = minRedRange;
	}

	public Double getMaxRedRange() {
		return maxRedRange;
	}

	public void setMaxRedRange(Double maxRedRange) {
		this.maxRedRange = maxRedRange;
	}

	public Double getMinGreenRange() {
		return minGreenRange;
	}

	public void setMinGreenRange(Double minGreenRange) {
		this.minGreenRange = minGreenRange;
	}

	public Double getMaxGreenRange() {
		return maxGreenRange;
	}

	public void setMaxGreenRange(Double maxGreenRange) {
		this.maxGreenRange = maxGreenRange;
	}

	public Configuration getConfiguration() {
		return configuration;
	}

	public void setConfiguration(Configuration configuration) {
		this.configuration = configuration;
	}

	public java.util.Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(java.util.Date createdDate) {
		this.createdDate = createdDate;
	}

	public java.util.Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(java.util.Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	public Double getStartRange() {
		return startRange;
	}

	public void setStartRange(Double startRange) {
		this.startRange = startRange;
	}

	public Double getEndRange() {
		return endRange;
	}

	public void setEndRange(Double endRange) {
		this.endRange = endRange;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public UnitOfMeasure getUnitOfMeasure() {
		return unitOfMeasure;
	}

	public void setUnitOfMeasure(UnitOfMeasure unitOfMeasure) {
		this.unitOfMeasure = unitOfMeasure;
	}


}
